@import '../variables.css';

.headerSearchContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  display: flex;
}

.headerSearchInput {
  width: 100%;
  border: none;
  padding: 8px;
  margin-bottom: 0;

  &.halfWidth {
    width: 50%;
  }
}

.headerSearchSelect {
  border-width: 0;
  padding: 0 4px;
  height: 100%;
  appearance: none;
}

.selectWrap {
  position: relative;
  border-width: 0 1px 0 0;
  border-color: #dfdfdf;
  border-style: solid;
}

.iconWrap {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
}

.clearIcon {
  fill: var(--color-icon);
  transition: all 0.25s ease;
}

.headerSearchClearButton {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-p2);

  &:hover {
    & .clearIcon {
      fill: #666;
    }
  }
}

[dir="rtl"] {
  & .selectWrap {
    border-width: 0 0 0 1px;
  }
}
